package cn.edu.sdjzu.xg.eagle.bysj.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


@TableName("kaoqinshensu")
public class KaoqinshensuEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    public KaoqinshensuEntity() {

    }

    public KaoqinshensuEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 员工工号
     */
    private String yuangonggonghao;

    /**
     * 员工姓名
     */
    private String yuangongxingming;

    /**
     * 性别
     */
    private String xingbie;

    /**
     * 部门
     */
    private String bumen;

    /**
     * 申诉原因
     */
    private String shensuyuanyin;

    /**
     * 申诉时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date shensushijian;

    /**
     * 是否审核
     */
    private String sfsh;

    /**
     * 回复内容
     */
    private String shhf;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public Date getAddtime() {
        return addtime;
    }
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    /**
     * 设置：员工工号
     */
    public void setYuangonggonghao(String yuangonggonghao) {
        this.yuangonggonghao = yuangonggonghao;
    }
    /**
     * 获取：员工工号
     */
    public String getYuangonggonghao() {
        return yuangonggonghao;
    }
    /**
     * 设置：员工姓名
     */
    public void setYuangongxingming(String yuangongxingming) {
        this.yuangongxingming = yuangongxingming;
    }
    /**
     * 获取：员工姓名
     */
    public String getYuangongxingming() {
        return yuangongxingming;
    }
    /**
     * 设置：性别
     */
    public void setXingbie(String xingbie) {
        this.xingbie = xingbie;
    }
    /**
     * 获取：性别
     */
    public String getXingbie() {
        return xingbie;
    }
    /**
     * 设置：部门
     */
    public void setBumen(String bumen) {
        this.bumen = bumen;
    }
    /**
     * 获取：部门
     */
    public String getBumen() {
        return bumen;
    }
    /**
     * 设置：申诉原因
     */
    public void setShensuyuanyin(String shensuyuanyin) {
        this.shensuyuanyin = shensuyuanyin;
    }
    /**
     * 获取：申诉原因
     */
    public String getShensuyuanyin() {
        return shensuyuanyin;
    }
    /**
     * 设置：申诉时间
     */
    public void setShensushijian(Date shensushijian) {
        this.shensushijian = shensushijian;
    }
    /**
     * 获取：申诉时间
     */
    public Date getShensushijian() {
        return shensushijian;
    }
    /**
     * 设置：是否审核
     */
    public void setSfsh(String sfsh) {
        this.sfsh = sfsh;
    }
    /**
     * 获取：是否审核
     */
    public String getSfsh() {
        return sfsh;
    }
    /**
     * 设置：回复内容
     */
    public void setShhf(String shhf) {
        this.shhf = shhf;
    }
    /**
     * 获取：回复内容
     */
    public String getShhf() {
        return shhf;
    }
}